from django.db import models

class ConversationMemory(models.Model):
    session_id = models.CharField(max_length=100, verbose_name='会话ID')
    user_query = models.TextField(verbose_name='用户问题')
    ai_response = models.TextField(verbose_name='AI回答')
    
    ctime = models.DateTimeField(auto_now_add=True, verbose_name='创建时间')
    
    class Meta:
        verbose_name_plural = "对话记忆"